package com.cskaoyan.order.dal.persistence;


import com.cskaoyan.order.dal.entitys.Order;
import com.cskaoyan.order.dto.OrderDetailInfo;
import com.cskaoyan.order.dto.OrderDto;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface OrderMapper extends Mapper<Order> {
    Long countAll();

    void updateStatusAndUpdateTime(@Param("status") Integer orderCancelStatus, @Param("date") Date date, @Param("orderId") String orderId);

    List<String> selectOrderIdDescByUserId(Long userId, String sort);

    OrderDto selectOrderInfoByOrderId(String orderId);
}